import java.util.Random;
import java.util.Scanner;

public class IfDemo04 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入石头-1 剪刀-2 布-3");
        int p = scanner.nextInt();
        // 电脑人
        Random random = new Random();
        int c = random.nextInt(3) + 1;// 0-2
        System.out.println(c);
        if (p == c) {
            System.out.println("平局");
        } else if ((p == 1 && c == 2) || (p == 2 && c == 3) || (p == 3 && c == 1)) {
            System.out.println("玩家赢");
        } else {
            System.out.println("电脑赢");
        }

    }
}
